<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2024/11/26
  Time: 19:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<html>
<head>
    <title>Title</title>
  <style>
    span{
      color:red
    }
  </style>
</head>
<body>
  <form action="register2">
    <input type="text" name="username" placeholder="用户名" value="${user.username}"> <span>${errors.username}</span> <br>
    <input type="text" name="password" placeholder="密码" value="${user.password}"><span>${errors.password}</span> <br>
    <input type="text" name="age" placeholder="年龄" value="${user.age}"> <span>${errors.age}</span><br>
    <input type="text" name="birthday" placeholder="生日" value="<fmt:formatDate value="${user.birthday}"></fmt:formatDate>"><span>${errors.birthday}</span> <br>
    <input type="text" name="salary" placeholder="薪水" value="${user.salary}"><span>${errors.salary}</span> <br>
    <input type="text" name="email" placeholder="邮箱" value="${user.email}"><span>${errors.email}</span>
    <input type="submit" value="提交">
  </form>


</body>
</html>
